package com.xuecheng.content.services.service;

import com.xuecheng.content.model.dto.SaveTeachPlanDto;
import com.xuecheng.content.model.dto.TeachPlanDto;
import com.xuecheng.content.model.po.Teachplan;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * <p>
 * 课程计划 服务类
 * </p>
 *
 * @author itcast
 * @since 2022-10-07
 */
public interface TeachplanService extends IService<Teachplan> {

    /**
     * 根据ID查询课程计划
     * @param courseId
     * @return
     */
    List<TeachPlanDto> findTeachPlanTree(Long courseId);

    /**
     * 新增课程计划
     * @param saveTeachPlanDto
     */
    void saveTeachPlan(SaveTeachPlanDto saveTeachPlanDto);
}
